package com.bakerj.infinitecards;

/**
 * ZIndexTransformer
 *
 * @author BakerJ
 * @since : 2021.5.24
 */
public interface ZIndexTransformer {
    /**
     * 切换动画
     *
     * @param card         card
     * @param fraction     分
     * @param cardWidth    card Width
     * @param cardHeight   card Height
     * @param fromPosition from Position
     * @param toPosition   to Position
     */
    void transformAnimation(CardItem card, float fraction, int cardWidth, int cardHeight, int
            fromPosition, int toPosition);

    /**
     * 切换插值动画
     *
     * @param card         card
     * @param fraction     分
     * @param cardWidth    card Width
     * @param cardHeight   card Height
     * @param fromPosition from Position
     * @param toPosition   to Position
     */
    void transformInterpolatedAnimation(CardItem card, float fraction, int cardWidth, int
            cardHeight, int fromPosition, int toPosition);
}
